import { combineReducers } from 'redux';
import userReducer from './user';
import channelReducer from './channel';
import searchReducer from './search';

const rootReducer = combineReducers({
  uer: userReducer,
  channel: channelReducer,
  // 2. 合并reducer函数
  search: searchReducer,
});

export default rootReducer;
